public class MessageHandler
{
	protected GGUDPNetworkServer server;

	public virtual void OnAddedToServer(GGUDPNetworkServer server)
	{
		this.server = server;
	}

	public virtual void OnRemovedFromServer(GGUDPNetworkServer server)
	{
		this.server = null;
	}

	public virtual bool CanAcceptMessage(UDPMessageBase message)
	{
		return message.app == GGServerConstants.instance.appName;
	}

	public virtual void OnMessageReceived(UDPMessageBase message)
	{
	}
}
